import sys
import os
os.environ['TCL_LIBRARY'] = "C:/Users/laolijia/AppData/Local/Programs/Python/Python36/tcl/tcl8.6"
os.environ['TK_LIBRARY'] = "C:/Users/laolijia/AppData/Local/Programs/Python/Python36/tcl/tk8.6"
from cx_Freeze import setup, Executable

base = None
if sys.platform == 'win32':
    base = 'Win32GUI'

executables = [
    Executable('GUI.py', base=base)
]
includes      = []
include_files = [r"C:\Users\laolijia\AppData\Local\Programs\Python\Python36\DLLs\tcl86t.dll", \
                 r"C:\Users\laolijia\AppData\Local\Programs\Python\Python36\DLLs\tk86t.dll"]

setup(name='simple_Tkinter',
      version='0.1',
    options = {"build_exe": {"includes": includes, "include_files": include_files ,"packages":["idna"]}},
      description='Sample cx_Freeze Tkinter script',
      executables=executables
      )